<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">
<h:head></h:head>
<h:body>

	<p:layout fullPage="true">
		<p:layoutUnit position="top" height="180" width="750">

			<table width="1350" height="221" border="0" cellpadding="0"
				cellspacing="0">
				<tr>
					<td><object
							classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
							codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
							width="750" height="221">
							<param name="movie" value="js24_1.swf" />
							<param name="quality" value="high" />
							<param name="LOOP" value="false" />
							<param name="menu" value="false" />
							<embed src="js24_1.swf" width="1350" height="221" loop="false"
								quality="high"
								pluginspage="http://www.macromedia.com/go/getflashplayer"
								type="application/x-shockwave-flash" menu="false"></embed>
						</object></td>
				</tr>
			</table>


		</p:layoutUnit>
		<p:layoutUnit position="bottom" height="30">
			<h:outputText value="Desenvovida por Hélcio Gomes de Carvalho" />
		</p:layoutUnit>
		<p:layoutUnit position="left" header="MENU" width="200">

			<h:form id="menuBotoes">
 <p:growl id="mensagemAutenticacao" showDetail="true" life="3000"/>
				<p:accordionPanel activeIndex="0" autoHeight="false">
					<p:tab title="Logado" rendered="#{loginAction.botaoLogout}" >
						<p:commandButton update=":menuBotoes" value="Sair" actionListener="#{loginAction.sairLogin}" ajax="false"/>
					</p:tab>
					
					<p:tab title="Login" rendered="#{loginAction.botaoLogado}">
						
						<h:panelGrid id="panel" columns="1" cellspacing="3">
							<h:outputLabel value="Login:*" />
							<h:panelGrid columns="2">
								<p:inputText id="usuario" required="true" size="10"
									label="Necessario preencher o campo"
									value="#{loginAction.username}" />
								<p:message for="usuario" display="icon" />
							</h:panelGrid>

							<h:outputLabel value="Senha:*" />
							<h:panelGrid columns="2">
								<p:password id="senhalogin" required="true" feedback="false"
									size="10" value="#{loginAction.password}" />
								<p:message for="senhalogin" display="icon" />
							</h:panelGrid>

						</h:panelGrid>

						<p:commandButton value="login"  update="mensagemAutenticacao :menuBotoes " actionListener="#{loginAction.login}" 
						oncomplete="handleLoginRequest(xhr, status, args)"/>
			<script type="text/javascript">
							function loginRequest(xhr, status, args){
							if(args.validationFailed || !args.loggedIn){
							jQuery('#dialog').parent().effect("shake", {times:3}, 100);
			
							}else{
							telaLogin.hide();
							jQuery('#link').fadeout();

						}

				}

			</script>


					</p:tab>
					
					<p:tab title="Solicita Coleta">

						<a href="cadastrocoleta.xhtml" target="conteudo">Coleta</a>
						<br />
						<a href="tabelaTrechoPrime.xhtml" target="conteudo">Rastrear
							Encomenda</a>
					</p:tab>
					
					
					<p:tab title="Cadastro ADM" rendered="#{loginAction.botaoAdm}">

						<a href="cadastroEmpresaPrime.xhtml" target="conteudo">Cadastrar
							Parceiros</a>
						<a href="cadastrofuncionarioPrime.xhtml" target="conteudo">Cadastrar
							Funcionarios</a>
						<a href="cadastrofisicaPrime.xhtml" target="conteudo">Cadastrar
							Pessoa Fisica</a>
						<a href="cadastroJuridicaPrime.xhtml" target="conteudo">Cadastrar
							Pessoa Juridica</a>
						<a href="cadastroVeiculoPrime.xhtml" target="conteudo">Cadastrar
							Veiculos</a>
						<a href="cadastroRota.xhtml" target="conteudo">Cadastrar Rotas</a>
						<br />
						<a href="emitirNotaFiscal.xhtml" target="conteudo">Cadastrar
							NotaFiscal</a>
						<br />
						<a href="cadastroTrecho.xhtml" >Cadastrar
							Trechos</a>
						<br />
						<a href="cadastroEntrega.xhtml" target="conteudo">Cadastrar
							Entregas</a>
						<br />


					</p:tab>
					<p:tab title="Consulta ADM" rendered="#{loginAction.botaoAdm}">

						<a href="tabelaFisicaPrime.xhtml" target="conteudo">Listar
							Pessoa Física</a>
						<br />
						<a href="tabelaJuridicaPrime.xhtml" target="conteudo">Listar
							Pessoa Jurídica</a>
						<br />
						<a href="tabelaFuncionarioPrime.xhtml" target="conteudo">Listar
							Funcionarios</a>
						<br />
						<a href="tabelaEmpresaPrime.xhtml" target="conteudo">Listar
							Empresas Parceiras</a>
						<br />
						<a href="tabelaColetaPrime.xhtml" target="conteudo">Listar
							Coletas</a>
						<br />
						<a href="tabelaNotaFiscalPrime.xhtml" target="conteudo">Listar
							Notas Fiscais</a>
						<br />
						<a href="tabelaRotaPrime.xhtml" target="conteudo">Listar Rotas</a>
						<br />
						<a href="tabelaTrechoPrime.xhtml" target="conteudo">Listar
							Trecho</a>
						<br />
						<a href="tabelaVeiculosPrime.xhtml" target="conteudo">Listar
							Veiculos</a>
						<br />
						<a href="atualizaTabelaTrechoPrime.xhtml" target="conteudo">Atualizar
							Trecho</a>
						<br />





					</p:tab>
					<p:tab title="Cadastro USER" rendered="#{loginAction.botaoInter}">

						
						<a href="cadastrofisicaPrime.xhtml" target="conteudo">Cadastrar
							Pessoa Fisica</a>
						<a href="cadastroJuridicaPrime.xhtml" target="conteudo">Cadastrar
							Pessoa Juridica</a>
						
						<a href="emitirNotaFiscal.xhtml" target="conteudo">Cadastrar
							NotaFiscal</a>
						<br />
						<a href="cadastroTrecho.xhtml" target="conteudo">Cadastrar
							Trechos</a>
						<br />
						<a href="cadastroEntrega.xhtml" target="conteudo">Cadastrar
							Entregas</a>
						<br />


					</p:tab>
					<p:tab title="Consulta" rendered="#{loginAction.botaoUser}">

						<a href="tabelaFisicaPrime.xhtml" target="conteudo">Listar
							Pessoa Física</a>
						<br />
						<a href="tabelaJuridicaPrime.xhtml" target="conteudo">Listar
							Pessoa Jurídica</a>
						<br />
						<a href="tabelaFuncionarioPrime.xhtml" target="conteudo">Listar
							Funcionarios</a>
						<br />
						<a href="tabelaEmpresaPrime.xhtml" target="conteudo">Listar
							Empresas Parceiras</a>
						<br />
						<a href="tabelaColetaPrime.xhtml" target="conteudo">Listar
							Coletas</a>
						<br />
						<a href="tabelaNotaFiscalPrime.xhtml" target="conteudo">Listar
							Notas Fiscais</a>
						<br />
						<a href="tabelaRotaPrime.xhtml" target="conteudo">Listar Rotas</a>
						<br />
						<a href="tabelaTrechoPrime.xhtml" target="conteudo">Listar
							Trecho</a>
						<br />
						<a href="tabelaVeiculosPrime.xhtml" target="conteudo">Listar
							Veiculos</a>
						<br />
						<a href="atualizaTabelaTrechoPrime.xhtml" target="conteudo">Atualizar
							Trecho</a>
						<br />





					</p:tab>

				</p:accordionPanel>



			</h:form>

		</p:layoutUnit>

		<p:layoutUnit position="center">
			<iframe name="conteudo" width="1080" height="400">
				
			</iframe>

		</p:layoutUnit>
	</p:layout>

</h:body>
</html>
